html,
body {
    height: 100%;
    background: #F8F8F8;
}

.common-container {
    width: 100%;
    height: calc(100% - 50px);
    padding: 0;
    overflow: hidden;
}

.content {
    position: relative;
    float: left;
    width: calc(100% - 220px);
    height: calc(100% - 32px);
    margin: 16px 10px;
    overflow: auto;
}

.content-backgrund {
    box-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.required-tip {
    margin-right: 5px;
    font-family: "SimSun";
    color: red;
}

.form-control[type=file] {
    padding: 0;
}

.has-feedback select.form-control {
    padding-right: 12px;
}

.common-form-btn,
.common-form-btn:focus {
    border-radius: 2px;
    width: 100px;
    height: 36px;
    color: #fff;
    background: #264169;
    transition: 0.5s all;
}

.common-form-btn:hover {
    background: #2969c8;
    color: #fff;
}

.common-form-btn-autosize,
.common-form-btn-autosize:focus {
    border-radius: 2px;
    height: 36px;
    color: #fff;
    background: #264169;
    transition: 0.5s all;
}

.common-form-btn-autosize:hover {
    background: #2969c8;
    color: #fff;
}

.upload-clear {
    width: 60px;
    height: 36px;
    background: #999999;
    color: #fff;
    border-radius: 2px;
    &:hover {
        color: #fff;
    }
}

.list-pending {
    color: #cccccc;
}

.list-approval {
    color: #00a1de;
}

.list-reject {
    color: #ff9352;
}


/** header **/

.common-header {
    height: 50px;
    background: #fff;
    box-shadow: 0 0 3px 2px #ddd;
    .header-logo {
        float: left;
        img {
            height: 50px;
        }
    }
}

.header-user {
    float: right;
    height: 100%;
    font-size: 20px;
    border-right: 1px solid lightgray;
    border-left: 1px solid lightgray;
    padding: 7px 20px;
    img {
        width: 30px;
        height: 30px;
    }
    span {
        padding-left: 5px;
        font-size: 16px;
    }
}

.header-operation {
    float: right;
    height: 100%;
    padding: 16px;
    cursor: pointer;
    font-size: 16px;
    border-right: 1px solid lightgray;
}


/** navigation **/

.common-nav {
    position: relative;
    float: left;
    width: 200px;
    background: #2A2A2A;
    padding-bottom: 9999px;
    margin-bottom: -9999px;
    h4 {
        color: #959595;
        padding: 30px 0 10px 20px;
        font-size: 20px;
        font-weight: bold;
    }
    .nav-icon {
        float: left;
        width: 30px;
        height: 30px;
        margin: 15px 0 0 15px;
        border-radius: 50%;
        border: 2px solid;
        text-align: center;
        i {
            padding-top: 6px;
        }
    }
    a {
        height: 60px;
        padding: 0;
        background: #2A2A2A;
        color: #fff;
        border: none;
        border-radius: none !important;
        border-bottom: 1px solid #fff;
        margin-bottom: 0;
    }
    a:hover {
        background: #1D1D1D;
        color: #fff;
    }
    .active {
        background: #1D1D1D;
        border-color: #fff;
        z-index: auto;
        border-left: 5px solid #D42B1D;
        .nav-icon {
            margin-left: 11px;
            background: #fff;
            color: #000;
        }
    }
    .active::after {
        content: "●";
        position: absolute;
        right: 10px;
        top: 15px;
        color: #D42B1D;
        font-size: 20px;
    }
    .active:hover {
        background: #1D1D1D;
        border-color: #fff;
        z-index: auto;
        border-left: 5px solid #D42B1D;
        background-image: none;
    }
}

.copy-right {
    position: fixed;
    bottom: 0;
    width: 200px;
    text-align: center;
    p {
        color: #fff;
    }
}

.nav-title {
    float: left;
    margin: 12px 0 0 10px;
    h3 {
        margin: 0;
        font-size: 16px;
    }
    p {
        font-size: 12px;
        margin: 5px 0 0 0;
    }
}


/** index **/

.block-panel,
.block-select {
    text-align: center;
}

.block-panel img {
    margin-top: 80px;
}

.block-panel a {
    color: #fff;
    background: #09C570;
    border-radius: 25px;
    width: 180px;
    margin-top: 30px;
    border: none;
}

.block-panel a:hover {
    background: #09A170;
    color: #fff;
}

.block-panel h2,
.block-panel h4 {
    font-weight: bold;
}


/** select-type **/

.block-select {
    padding: 0 55px;
    .title {
        margin: 79px 0 40px 0;
    }
}

.block-select {
    a {
        display: block;
        height: 90px;
        margin: 0 0 30px 0;
        border: 1px solid #ddd;
        background: url('../../asstes/images/type-background.png') no-repeat;
    }
    img {
        height: 70px;
        float: left;
        margin: 10px 20px;
    }
    .type-title {
        float: left;
        color: #000;
        h3 {
            font-size: 20px;
        }
    }
    .type-item {
        margin: 0 auto;
        width: 45%;
        display: inline-block;
        margin: 0 2.5%;
    }
}


/** list **/

.list-search {
    margin-bottom: 16px;
    border-radius: 2px;
    h5 {
        font-size: 16px;
        margin: 0;
    }
    h6 {
        margin: 5px 0 0 0;
    }
}

.list-search .form-control {
    border-radius: 2px;
    border: 1px solid #999999;
}

.list-popover {
    color: #000 !important;
    outline: none !important;
    text-decoration: none !important;
}

.popover-content {
    padding: 0px 8px;
}

.list-popover-item {
    display: block;
    color: #000;
    margin: 5px 0;
    border-radius: none;
    i {
        padding-right: 10px;
    }
}

.list-popover-item {
    border-bottom: 1px solid #dddddd;
}

.list-dropdown-item:last-child {
    border-bottom: none
}

.list-panel {
    .panel-body {
        padding: 0;
    }
    .list-table {
        border-left: none;
        border-right: none;
        border-bottom: none;
        border-top: 2px solid #d52b1e;
        th {
            border: none;
        }
        .popover {
            border-radius: 2px;
            z-index: 1030;
        }
    }
}

.list-panel thead {
    background: #ffefea;
}

.list-panel h5,
.list-panel h6 {
    font-weight: bold;
    margin: 5px 0px;
    outline: none !important;
}

.list-panel .dropdown-toggle {
    cursor: pointer;
}

.list-pagination {
    span,
    a {
        margin: 0 5px;
        border-radius: 2px !important;
        color: #000 !important;
        box-shadow: 0 0 6px 2px rgba(0, 0, 0, 0.1);
    }
    .active {
        span {
            background: #d52b1e;
            border-color: #d52b1e;
            color: #fff !important;
        }
        span:hover {
            background: #d52b1e;
            border-color: #d52b1e;
        }
    }
}

.form-exit-btn {
    float: left;
    background: #fff;
    color: #777777;
    border-radius: 25px;
    width: 120px;
    height: 50px;
    border: 2px solid #777777;
    font-size: 16px;
    outline: none !important;
}

.form-save-btn {
    float: left;
    background: #fff;
    color: #09c570;
    border-radius: 25px;
    width: 120px;
    height: 50px;
    border: 2px solid #09c570;
    font-size: 16px;
    margin: 0 15px;
    &:hover,
    &:focus {
        background: #09c570 !important;
        color: #fff !important;
        border-color: #09c570 !important;
        outline: none !important;
    }
}

.form-submit-btn {
    float: right;
    background: #09c570;
    color: #fff;
    border-radius: 30px;
    width: 160px;
    height: 60px;
    border: 2px solid #09c570;
    font-size: 16px;
    margin: 0 15px;
    &:hover,
    &:focus {
        background: #fff !important;
        color: #09c570 !important;
        border-color: #09c570 !important;
        outline: none !important;
    }
}

.form-reject-btn {
    float: left;
    width: 120px;
    height: 50px;
    color: #ff9352;
    background: #fff;
    border-radius: 25px;
    border: 2px solid #ff9352;
    font-size: 16px;
    margin: 0 15px;
    &:hover,
    &:focus {
        background: #ff9352 !important;
        color: #fff !important;
        border-color: #ff9352 !important;
        outline: none !important;
    }
}


/** detail **/

.form-detail {
    .panel {
        border-radius: 0;
        box-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.1);
    }
    .panel-heading {
        background: #656565;
        color: #fff;
        border-radius: 0;
    }
    .panel-body {
        padding: 20px;
        th {
            border: none;
            font-size: 16px;
        }
        td {
            border: none;
        }
        h5 {
            margin: 2px 0 0 0;
        }
    }
    .form-control,
    .input-group-addon {
        height: 36px;
        border-color: #999;
        border-radius: 2px;
    }
    .form-control[readonly] {
        background-color: #f5f5f5;
    }
    .input-mw {
        .form-group {
            max-width: 300px;
        }
    }
    .detali-operation {
        border-bottom: 4px solid #777777;
    }
    .approval-type {
        display: inline-block;
        vertical-align: top;
        text-align: right;
        width: 200px;
        margin-right: 20px;
        font-size: 16px;
        font-weight: bold;
    }
    .approval-information {
        margin-bottom: 30px;
    }
    .approval-info {
        display: inline-block;
    }
    .approval-info-status {
        margin-bottom: 10px;
        p {
            display: inline-block;
            font-size: 16px;
            font-weight: bold;
            margin: 0 10px 0 0;
        }
    }
    .approval-info-comment {
        font-size: 16px;
    }
    .approval-info-icon {
        display: inline-block;
        vertical-align: top;
        img {
            width: 16px;
            height: 16px;
        }
        span {
            font-size: 16px;
            vertical-align: middle;
        }
    }
    .approval-info-sign,
    .approval-info-date {
        letter-spacing: 1px;
        font-style: italic;
    }
    .curapproval-common {
        display: inline-block;
        width: 60%;
        textarea {
            height: 80px;
            margin-bottom: 10px;
        }
        p {
            color: #ff9352;
            margin: 0;
        }
    }
    .approval-information-header {
        background: #00a1de;
    }
    .curapproval-information-header {
        background: #d52b1e;
    }
}


/** export **/

.export-content {
    text-align: center;
    box-shadow: 0 0 6px 3px rgba(0, 0, 0, 0.1);
    background: #fff;
}

.export-icon {
    margin: 80px 0 20px 0;
}

.export-btn {
    background: #09c570;
    color: #fff;
    border-radius: 30px;
    width: 160px;
    height: 60px;
    border: 2px solid #09c570;
    font-size: 16px;
    margin: 0 15px;
    transition: 0.5s all;
}

.export-btn:hover {
    background: #fff !important;
    color: #09c570 !important;
    border-color: #09c570 !important;
}


/** common-search **/

.search-row {
    margin: 20px 0;
}

.search-title {
    display: inline-block;
    vertical-align: top;
    width: 20%;
    text-align: right;
    margin-right: 15px;
}

.search-input {
    display: inline-block;
    vertical-align: top;
    width: 75%;
}

.search-submit {
    text-align: right;
    margin-right: calc(8% - 15px);
}

.search-change {
    display: none;
}

.component-table-user {
    max-width: 314px;
}

.component-table-user-standard {
    max-width: 431px;
}

.component-table-attechment {
    max-width: 434px;
}

.component-select-other {
    width: 100%;
    .component-select-other-select {
        float: left;
        width: 50%;
        max-width: 300px;
    }
    .component-select-other-other {
        float: left;
        width: 50%;
        max-width: 300px;
        padding-left: 10px;
    }
}

.component-location {
    width: 100%;
    .component-location-province {
        float: left;
        width: 50%;
        max-width: 300px;
    }
    .component-location-city {
        float: left;
        width: 50%;
        max-width: 300px;
        padding-left: 10px;
    }
}